import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.11

import hommeWin 1.0


Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Дни рождения")
    id :win

    function slotViewD(FIO, DATA, GoDA){
        fio.text = FIO;
        dataP.text = DATA;
        goda.text = GoDA;
    }

    ToolBar{
        visible: true
        id:toolbar
        anchors{
            left: parent.left
            right: parent.right
            top: parent.top
        }
        ToolButton{
            id: addtollbutton
            text: qsTr("")
            display: AbstractButton.TextBesideIcon
            Image {
                anchors{
                    fill: parent
                    margins: 3
                }
                source: "qrc:/Image/pencil.png"
            }
            ToolTip.delay: 100
            ToolTip.timeout: 5000
            ToolTip.visible: hovered
            ToolTip.text: qsTr("Элементы редактирования записей")

            onClicked: {
                //логика
            }
        }
    }
    ColumnLayout{
        objectName: "ColumnL"
        id: map
        anchors{
            verticalCenter: parent.verticalCenter
            horizontalCenter: parent.horizontalCenter
            top: toolbar.bottom
        }

        RowLayout{
            id: colProsh
            anchors{
                horizontalCenter: win.horizontalCenter
            }
            Label{
                id: fio
                text: "value"
                font.pointSize: 12
            }
            Label{
                id: dataP
                text: "value"
                font.pointSize: 12
            }
            Label{
                id: goda
                text: "value"
                font.pointSize: 12
            }
        }
        RowLayout{
            id: colBud
            anchors{
                horizontalCenter: win.horizontalCenter
            }
            Label{
                id: fioB
                text: "value"
                font.pointSize: 12
            }
            Label{
                id: dataB
                text: "value"
                font.pointSize: 12
            }
            Label{
                id: godaB
                text: "value"
                font.pointSize: 12
            }
        }
    }
}
